package cn.hinglo.gameclaw.user.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @createTime: 2018/5/17
 * @author: HingLo
 * @description: 客服端登录
 */
@Data
@Accessors(chain = true)
public class ClientLogin {

    @NotNull(message = "用户名ID不能为空")
    private String id;

    @NotNull(message = "性别不能为空")
    @Min(value = 0, message = "性别类型不正确")
    @Max(value = 3, message = "性别类型不正确")
    private Integer sex;
    @NotNull(message = "登录类型不能为空")
    @Min(value = 2, message = "登录类型传递不正确")
    @Max(value = 3, message = "登录类型传递不正确")
    private Integer types;
    @NotNull(message = "昵称不能为空")
    private String nikeName;
    @NotNull(message = "头像地址不能为空")
    private String icon;
}
